﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace FantasyDraft2.Models
{
    public class Game
    {
        [Key]
        public int GameId { get; set; }

        public int TeamId1 { get; set; }
        public int TeamId2 { get; set; }
        public int Score1 { get; set; }
        public int Score2 { get; set; }

        //Game has a 1 to Many relationship [Team1, Team 2 are foreign keys that reference User's TeamId]with User therefore 2 enumerable collection 
        //references must be made (for two possible teams) to communicate.
        public User Team1 { get; set; }
        public User Team2 { get; set; }
    }
}